from django.conf.urls.defaults import *
from mysite import views
#from mysite.books import views


# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    
    (r'^hello/$', views.hello),
    (r'^login/$', views.login_form),
    (r'^login_authenticate/$', views.login_authenticate),
    (r'^create_user/$', views.create_user),
    (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
    (r'^accounts/profile/$', views.hello),
    #(r'^display_meta/$', views.display_meta),
    #(r'^search_form/$', views.search_form),
    #(r'^search/$', views.search),
    (r'^css_test/$', views.css_test),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': 'C:\\Software_Projects\\mysite\\templates\\media', 'show_indexes' : True}),



    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
)
